package com.yh.csx.event.store.event;

import com.yh.csx.business.api.entity.CommonResponse;
import com.yh.csx.business.api.entity.Page;
import com.yh.csx.event.store.EventConstants;
import com.yh.csx.event.store.event.dto.req.EventReq;
import com.yh.csx.event.store.event.dto.resp.EventResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Api(value = "事件接口")
@FeignClient(value = EventConstants.BSF_EVENT_RPC)
@RequestMapping("event")
public interface IEventServiceApi {

    @GetMapping(value = "queryEvents")
    CommonResponse<Page<EventResp>> queryEvents(@ApiParam(name = "eventReq") @SpringQueryMap EventReq eventReq);


    @GetMapping(value = "rePush")
    CommonResponse<String> rePush(@RequestParam("eventId") String eventId);


}
